package com.igor.bookStore.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.igor.bookStore.inface.Seller;

public class SellersBean implements Sellers {
	
	 private Map<String, Seller> sellers = new HashMap<String, Seller>();
     
     public Collection<Seller> retrieve() {
             return sellers.values();
     }

     public Seller save(Seller seller) {
             return sellers.put(seller.getName(), seller);
     }
     
     public Seller retrieveSingleSeller(String name) {
             return sellers.get(name);
     }


}
